REMOTE SMS CONTROLLER

Specification :
- 1 port 8 bit TTL inputs (optional : isolated)
- 1 port 8 bit TTL outputs
- Auto Send setting
- Input state changing indication

- Set basic I/O
  CTRLset			keyword
  O1=x				outport input no.1
  x = 0(off), 1(on), t(toggle), other char(dont care)
  out=1111.0000			outport accessed
				dot may omitted
  Another format :
  O1=t O1=0 out=tttt0110 out=01010110
  allrandom, allon, alloff
  In one message may include more I/O setting (but reading and executing from left to right order)
  Space may omitted, but for more clearly command can added

- Timer programmable output (date, hour, minute)
  Programmable mode : ON/OFF for relay output
  Program Format :
  CTRLpgm			keyword
  #071130*11000111		#ddhhmm*8bitprog, dd=99 everyday
  #...
  #00				#00		= end program file

- Personal data set up (must be loaded)
  Data Format :
  CTRLdata			keyword
  D=+6281xxxx			destination report (international number format)

  Better you save this data at SMS memory number#1
  (Write SMS data when the SIM card SMS memory is empty)
  Loaded when the device started
  It can be loaded by send new SMS data but it will be loss if the device is restarted.


config switch :
0 = input LO
1 = input HIGH
autoscan	load SMS memory #1-5 (see function 'loadexeall')
		sw4 (P0.4)	0=loadexeall
				1=skip loadexeall
autosend	automatic sending message to destination number (CTRLdata)
		sw5 (P0.3)	0=auto send message
				1=don't send
autodel		auto delete message
		sw6 (P0.2)	0=auto delete message
				1=don't delete



exe message :
- execute basic input output from message
- load data from message
- load timer program from message
- execute state request message


Debug info : PC COM 19kbps 8-n-1

Note :
- the program only support for up to first 9 memory used, use autodel so the SMS memory not full
- command not case sensitive